package Animal;

import PolymorphismLearning.Animal;

public class Dog extends Animal {
    private String colour;

    public Dog(String colour) {
        this.colour = colour;
    }

    public Dog(String name, double month, String colour) {
        super(name, month);
        this.colour = colour;
    }

    public Dog() {
    }

    public String getColour() {
        return colour;
    }

    public void setColour(String colour) {
        this.colour = colour;
    }

    @Override
    public void eat() {
        super.eat();
        System.out.println("狗吃骨头");
    }
}
